#ifndef __CAPTURE_H__
#define __CAPTURE_H__

#include <stdint.h>
#include <libcc_stl/lock.h>

struct capture
{
    char file[128];
    // pthread_spinlock_t lock;
    struct lock* l;
};

int capture_init(struct capture* c, const char* filename, struct lock* l);
void capture_write(struct capture* pk, uint8_t* pkt, unsigned short pkt_len);

#endif

